package com.zhentao.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.google.common.base.Equivalence;
import com.zhentao.model.entity.system.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
* @author 86131
* @description 针对表【sys_menu(菜单表)】的数据库操作Mapper
* @createDate 2024-08-19 14:42:07
* @Entity com.zhentao.domain.SysMenu
*/
@Mapper
public interface SysMenuMapper {


    List<SysMenu> selectAll();

    void saveMenu(SysMenu sysMenu);

    void updateMenuById(SysMenu sysMenu);

    void removeMenuById(Integer id);

    int countByParentId(Integer id);

//    动态菜单
    List<SysMenu> selectListByUserId(Long userId);
}




